<?php
/**
 * @fileName:DigitalProduct.php
 * @project:miaosang
 * @author : 吐火青蛙
 * @user : 吐火青蛙
 * @date : 2020/4/10
 *
 */

namespace miaosang\basicknowledge\design\abstractfactory;

use miaosang\basicknowledge\design\abstractfactory\AbstractFactory;
class DigitalProduct implements AbstractFactory
{
    /**
     * @var float
     */
    private $price;

    /**
     * DigitalProduct constructor.
     * @param float $price
     */
    public function __construct(float $price)
    {
    $this->price = $price;
    }
    /**
     * @return float
     */
    public function calcuationPrice(): float
    {
        return $this->price;
        // TODO: Implement calcuationPrice() method.
    }
}
